<?php
/**
 * Created by PhpStorm.
 * User: Reborn
 * Date: 2019/12/5
 * Time: 10:38
 */

namespace app;


abstract class BaseService
{
    public $model;

    public function all()
    {
        return $this->model->all();
    }

    public function paginate($limit,$where)
    {
        return $this->model->paginates($limit,$where);
    }

    public function add(array $input)
    {
        return $this->model->add($input);
    }

    public function find($id)
    {
        return $this->model->find($id);
    }

    public function renew($id, array $input)
    {
        return $this->model->renew($id, $input);
    }

    public function remove($id)
    {
        return $this->model->remove($id);
    }
}